package com.moon.interview.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
@Schema(description = "用户信息")
public class UserVo {
    @Schema(name = "id", description = "ID")
    private Long id;

    /** 账号 */
    @Schema(name = "userAccount", description = "账号")
    private String userAccount;

    /** 用户昵称 */
    @Schema(name = "userName", description = "用户昵称")
    private String userName;

    /** 用户头像 */
    @Schema(name = "userAvatar", description = "用户简介")
    private String userAvatar;

    /** 用户简介 */
    @Schema(name = "userProfile", description = "用户简介")
    private String userProfile;

    /** 用户角色 */
    @Schema(name = "userRole", description = "用户角色")
    private String userRole;

    /** 微信开放平台ID */
    @Schema(name = "unionId", description = "微信开放平台ID")
    private String unionId;

    /** 公众号openID */
    @Schema(name = "mpOpenId", description = "公众号openID")
    private String mpOpenId;

    /** 创建时间 */
    @Schema(name = "createTime", description = "公众号openID")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新时间 */
    @Schema(name = "updateTime", description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
